package com.xunqi.crm.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@TableName(value = "sys_role")
public class Role {

    @TableId(type = IdType.AUTO)
    private Long roleId;

    private String roleName;

    private String roleDesc;

    private int roleFlag;

    @TableField(exist = false)
    private List<User> users = new ArrayList<>();
}
